package com.jarvan.model;


import com.jarvan.enums.TrainEnum;
import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;

@Entity
@Data
@DynamicUpdate
public class Trains implements Serializable {
    private static final long serialVersionUID = 6399186181668983148L;

    @Id
    private String trainId;

    private String trainType;

    private String start;

    private String end;

    private String startTime;

    private String endTime;
    /* 车厢数 */
    private Integer carriage;

    private Integer maxSpeed;

    private Integer seatCount;

    private BigDecimal mileage;

    private BigDecimal persitePrice;

    private Integer totalMin;

    private Integer totalDay;

    private String stations;

    private Integer trainStatus = TrainEnum.NORMAL.getCode();
}
